package ar.uba.fi.RSACryptoFiuba.model.decrypt;

import ar.uba.fi.RSACryptoFiuba.model.RSAMessage;

public class RSADecryptMessage extends RSAMessage{
	
	private String encryptedText;
	private String processedEncryptedText;
	private String remainEncryptedText;
	private String numericalRepresentation;
	private String actualC;
	private String actualM;
	private String plainText;	
	private String dKey;
	private String nKey;
	
	public RSADecryptMessage(){
		this.encryptedText = "";
		this.processedEncryptedText = "";
		this.remainEncryptedText = "";
		this.numericalRepresentation = "";
		this.actualM = "";
		this.plainText = "";
		this.dKey = "";
		this.nKey = "";
		setChanged();
		notifyObservers(this);
	}

	public boolean isCompleted() {
		return this.remainEncryptedText.isEmpty();
	}

	public boolean isStarted() {
		return !this.actualM.isEmpty();
	}

	public String getEncryptedText() {
		return encryptedText;
	}

	public void setEncryptedText(String encryptedText) {
		this.encryptedText = encryptedText;
	}

	public String getProcessedEncryptedText() {
		return processedEncryptedText;
	}

	public void setProcessedEncryptedText(String processedEncryptedText) {
		this.processedEncryptedText = processedEncryptedText;
	}

	public String getRemainEncryptedText() {
		return remainEncryptedText;
	}

	public void setRemainEncryptedText(String remainEncryptedText) {
		this.remainEncryptedText = remainEncryptedText;
	}

	public String getNumericalRepresentation() {
		return numericalRepresentation;
	}

	public void setNumericalRepresentation(String numericalRepresentation) {
		this.numericalRepresentation = numericalRepresentation;
	}

	public String getActualC() {
		return actualC;
	}

	public void setActualC(String actualC) {
		this.actualC = actualC;
	}

	public String getActualM() {
		return actualM;
	}

	public void setActualM(String actualM) {
		this.actualM = actualM;
	}

	public String getPlainText() {
		return plainText;
	}

	public void setPlainText(String plainText) {
		this.plainText = plainText;
	}

	public String getDKey() {
		return dKey;
	}

	public void setDKey(String dKey) {
		this.dKey = dKey;
	}

	public String getNKey() {
		return nKey;
	}

	public void setNKey(String nKey) {
		this.nKey = nKey;
	}	
}
